#!/bin/bash

time=$(date +%Y"."%m"."%d" "%k":"%M":"%S);
year=`date -d "today" +"%Y"`;
month=`date -d "today" +"%m"`;
day=`date -d "today" +"%d"`;
hour=`date -d "today" +"%k"`;
#logFile
logFile="/var/log/autochmod/autochmod_${year}${month}.log";
if [ ! -f "$logFile" ]
then
		touch "$logFile";
fi

echo $time chmod command excute starting.....  >> $logFile;

#chown -R yangwenhai:901 /var2/share/resource_library/01-公司规范库
#chown -R yangwenhai:902 /var2/share/resource_library/02-公司知识库
chown -R yangwenhai:903 /var2/share/resource_library/03-产品设计库
chown -R yangwenhai:904 /var2/share/resource_library/04-产品研发库
chown -R yangwenhai:905 /var2/share/resource_library/05-项目库
chown -R yangwenhai:906 /var2/share/resource_library/06-售后
chown -R yangwenhai:907 /var2/share/resource_library/07-培训
chown -R yangwenhai:908 /var2/share/resource_library/08-办公
chown -R yangwenhai:909 /var2/share/resource_library/09-商务
chown -R yangwenhai:910 /var2/share/resource_library/10-公司管理
chown -R yangwenhai:911 /var2/share/resource_library/11-公司产品安装包
chown -R yangwenhai:912 /var2/share/resource_library/12-方案库

chown -R yangwenhai:1100 /var2/share/maintenance_Library/01-博校公司网络运维管理
chown -R yangwenhai:1100 /var2/share/maintenance_Library/02-BXC服务运维管理
chown -R yangwenhai:1103 /var2/share/maintenance_Library/03-BXC-Update方案
